<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_盒子模型练习</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .card {
            width: 300px;
            background-color:#e8e8e8;
            padding: 10px;
            margin-bottom: 30px;
        }
        .card>img {
            width: 100%;
        }
        .card>p {
            margin: 10px 20px 30px 40px;
            border: 5px solid #f00;
        }
    </style>
</head>
<body>
    <div class="card">
        <img src="img/1.png">
        <p>我是文字</p>
    </div>
    <div class="card">
        <img src="img/1.png">
        <p>我是文字</p>
    </div>
</body>
</html>